package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.Users;
import com.tanhua.dubbo.server.vo.PageInfo;

import java.util.List;

public interface UsersApi {

    /**
     * 保存好友
     *
     * @param users
     * @return
     */
    String saveUsers(Users users);

    /**
       * @Description: 根据id查询user列表
       * @Param:[userId]
       * @return:java.util.List<com.tanhua.dubbo.server.pojo.Users>
       * @Author:JinboYang
       * @Date:2021/1/10
       */
    List<Users> queryAllUsersList(Long userId);

    /**
       * @Description: 根据用户id查询Users列表(分页查询)
       * @Param:[userId, page, pageSize]
       * @return:com.tanhua.dubbo.server.vo.PageInfo<com.tanhua.dubbo.server.pojo.Users>
       * @Author:JinboYang
       * @Date:2021/1/10
       */
    PageInfo<Users> queryUsersList(Long userId, Integer page, Integer pageSize);
}